package com.newsproject.pojo.DTO;

import Util.FormatTime;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class HotSearchPostDTO{
    private Integer hotSearchId;   //热搜id
    private String keyword;        //热搜关键词
    private String postCover;      //文章封面
    private String authorName;     //作者名
    private Date createTime;       //发表时间
    private Double heat;          //热度值
    private String tagName;        //标签名
    private String title;          //标题
    private String content;        //内容
    private int isLimit;           //是否限流
    private int isBlock;           //是否屏蔽
    private int isVerified;        //是否认证 0未认证 1认证
    private String verContent;     //认证内容
    private String avatar;         //头像
    private double limitRate;         //限流速率
    private Date limitStartTime; //限流开始时间
    private Date limitEndTime;   //限流结束时间

    public String getCreateTime(){
        return FormatTime.formatDateTime(createTime);
    }

}
